package main

import "fmt"

func bsort(a []int) {
	for i := 0; i < len(a)-1; i++ {
		for j := 0; j < len(a)-i-1; j++ {
			if a[j] > a[j+1] {
				a[j], a[j+1] = a[j+1], a[j]
			}
		}
	}
}

func main() {
	b := [...]int{8, 7, 5, 10, 2, 15, 3}
	bsort(b[:])
	fmt.Println(b)
}
